import React from 'react';

import cn from 'classnames';

import cs from './Checkbox.module.scss';

type Props = {
  isActive: boolean;
  setActive?: () => void;
};

export const Checkbox = ({ isActive, setActive }: Props) => (
  <div className={cn(cs.checkbox, { [cs.active]: isActive })} onClick={setActive} />
);
